﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.IO;
using System.Windows.Forms;

using VodacekEngine;

namespace WindowsFormsApplication4
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
            openFileDialog1.Filter = "XNB files (*.xnb)|*.xnb";
        }

        private void button1_Click(object sender, EventArgs e)
        {
            openFileDialog1.FileName = "";
            DialogResult res=openFileDialog1.ShowDialog();
            if (res == DialogResult.OK)
            {
                XNBFileInfo info = XNBFileInfo.GetInfo(openFileDialog1.FileName);
                textBox1.AppendText(Path.GetFileName(openFileDialog1.FileName)+": " + info.ToString()+"\r\n");
            }
        }
    }
}
